import { useUserStore } from '../store'

export function hasPermission(roles) {
  const userStore = useUserStore()
  const userRole = userStore.userRole
  return roles.includes(userRole)
} 